#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
int main()
{
	int i = 0;
	int n = 9;
	for (i = 1; i < n + 1; i++)
	{
		int k = 0;
		for (k = 0; k < n - i; k++)
		{
			printf(" ");
		}
		int j = 0;
		for (j = 0; j < 2 * i - 1; j++)
		{
			printf("*");
		}
		printf("\n");
	}
	for (i = 1; i < n; i++)
	{
		int j = 0;
		for (j = 0; j < i; j++)
		{
			printf(" ");
		}
		int k = 0;
		for (k = 0; k < 2 * n - 2 * i - 1; k++)
		{
			printf("*");
		}
		printf("\n");
	}
	return 0;
}

